<?php
require('config.php');

        $user_id=$_REQUEST['user_id'];
        //$user_id=9;
		$sql="select * from `".$oto."_orders`,`".$oto."_order_goods`,`".$oto."_shops` where ".$oto."_orders.userId='".$user_id."' and `orderFlag`='1' and ".$oto."_orders.orderId=".$oto."_order_goods.orderId and ".$oto."_shops.shopId=".$oto."_orders.shopId and (orderStatus='1' or orderStatus='0' or orderStatus='2') order by ".$oto."_orders.createTime DESC";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$person_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		echo json_encode($person_info);
?>